<script>
    $(document).ready(function(){
        $('.submit-login').click(function(){
            var user=$('.username').val();
            var pass=$('.password').val();
            $.ajax({
          		type: "POST",
          		url:'<?php echo base_url();?>mod_user/mod_user/login',
          		data: {user: user,pass:pass},
                success: callback
      		});
           return false;
        })
        //return false;
    });
    function callback (data, status){
       $('.ketqua').html(data)
    }
</script>
<div class="module-collright login-right">
    <div class="login-top"></div>
    <div class="login-center">
        <div class="ketqua"></div>
        <input class="txttext username" type="text" name="username" title="username" value=""/>
        <?php echo form_error('username');?>
        <input class="txttext password" type="password" name="password" title="password" value=""/>
        <p><a href="#">Hỗ trợ đăng nhập</a><a href="#">Đăng ký mới</a></p>
        <input class="submit-login" type="button" value="" title="submit"/>
    </div>
    <div class="login-bottom"></div>
</div>